package com.zzw.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component(value = "mybatisPropertis")
@ConfigurationProperties(prefix = "mybatis")
/**
* @Athor:xiezhongjiang
* @Description:mybatis配置相关属性
* @Date:2017/10/26 11:43
* @Since:1.0.0
*/
public class MybatisPropertis {
	// 配置类型别名
	private String mapperLocations;
	// 配置mapper的扫描，找到所有的mapper.xml映射文件
	private String typeAliasesPackage;
	// 加载全局的配置文件
	private String mapperScanPackage;
	private String configLocation;
	public String getMapperLocations() {
		return mapperLocations;
	}
	public void setMapperLocations(String mapperLocations) {
		this.mapperLocations = mapperLocations;
	}
	public String getTypeAliasesPackage() {
		return typeAliasesPackage;
	}
	public void setTypeAliasesPackage(String typeAliasesPackage) {
		this.typeAliasesPackage = typeAliasesPackage;
	}
	public String getMapperScanPackage() {
		return mapperScanPackage;
	}
	public void setMapperScanPackage(String mapperScanPackage) {
		this.mapperScanPackage = mapperScanPackage;
	}
	public String getConfigLocation() {
		return configLocation;
	}
	public void setConfigLocation(String configLocation) {
		this.configLocation = configLocation;
	}	
}
